home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / x.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  19KB  |  685 lines

  1. /*
  2.  *    $XConsortium: X.h,v 1.66 88/09/06 15:55:56 jim Exp $
  3.  */
  4.  
  5. /* Definitions for the X window system likely to be used by applications */
  6.  
  7. #ifndef X_H
  8. #define X_H
  9.  
  10. /***********************************************************
  11. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  12. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  13.  
  14.                         All Rights Reserved
  15.  
  16. Permission to use, copy, modify, and distribute this software and its 
  17. documentation for any purpose and without fee is hereby granted, 
  18. provided that the above copyright notice appear in all copies and that
  19. both that copyright notice and this permission notice appear in 
  20. supporting documentation, and that the names of Digital or MIT not be
  21. used in advertising or publicity pertaining to distribution of the
  22. software without specific, written prior permission.  
  23.  
  24. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  25. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  26. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  27. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  28. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  29. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  30. SOFTWARE.
  31.  
  32. ******************************************************************/
  33. #define X_PROTOCOL    11        /* current protocol version */
  34. #define X_PROTOCOL_REVISION 0        /* current minor version */
  35.  
  36. /* Resources */
  37. /*
  38. #ifndef _CADDR_T
  39. #define _CADDR_T 1
  40. typedef    char *    caddr_t;    
  41. #endif
  42. */
  43.  
  44. extern double hypot(double,double);
  45. //extern void cfree(char*);
  46.  
  47. /*
  48. #include <X11/amigaX.h>
  49. */
  50.  
  51. typedef unsigned long XID;
  52.  
  53. /*
  54. #ifdef AMIGA
  55. typedef struct ColorMap *Colormap;
  56. #else
  57. */
  58. typedef XID Colormap;
  59. /*
  60. #endif
  61. */
  62.  
  63. typedef XID Window;
  64. typedef XID Drawable;
  65. typedef XID Cursor;
  66. typedef XID Font;
  67. typedef XID Pixmap;
  68. typedef XID GContext;
  69. typedef XID KeySym;
  70.  
  71. typedef unsigned long Mask;
  72.  
  73. typedef unsigned long Atom;
  74.  
  75. typedef unsigned long VisualID;
  76.  
  77. typedef unsigned long Time;
  78.  
  79. typedef unsigned char KeyCode;
  80.  
  81. /*****************************************************************
  82.  * RESERVED RESOURCE AND CONSTANT DEFINITIONS
  83.  *****************************************************************/
  84.  
  85. #define None                 0L    /* universal null resource or null atom */
  86.  
  87. #define ParentRelative       1L    /* background pixmap in CreateWindow
  88.                     and ChangeWindowAttributes */
  89.  
  90. #define CopyFromParent       0L    /* border pixmap in CreateWindow
  91.                        and ChangeWindowAttributes
  92.                    special VisualID and special window
  93.                        class passed to CreateWindow */
  94.  
  95. #define PointerWindow        0L    /* destination window in SendEvent */
  96. #define InputFocus           1L    /* destination window in SendEvent */
  97.  
  98. #define PointerRoot          1L    /* focus window in SetInputFocus */
  99.  
  100. #define AnyPropertyType      0L    /* special Atom, passed to GetProperty */
  101.  
  102. #define AnyKey             0L    /* special Key Code, passed to GrabKey */
  103.  
  104. #define AnyButton            0L    /* special Button Code, passed to GrabButton */
  105.  
  106. #define AllTemporary         0L    /* special Resource ID passed to KillClient */
  107.  
  108. #define CurrentTime          0L    /* special Time */
  109.  
  110. #define NoSymbol         0L    /* special KeySym */
  111.  
  112. /***************************************************************** 
  113.  * EVENT DEFINITIONS 
  114.  *****************************************************************/
  115.  
  116. /* Input Event Masks. Used as event-mask window attribute and as arguments
  117.    to Grab requests.  Not to be confused with event names.  */
  118.  
  119. #define NoEventMask            0L
  120. #define KeyPressMask            (1L<<0)  
  121. #define KeyReleaseMask            (1L<<1)  
  122. #define ButtonPressMask            (1L<<2)  
  123. #define ButtonReleaseMask        (1L<<3)  
  124. #define EnterWindowMask            (1L<<4)  
  125. #define LeaveWindowMask            (1L<<5)  
  126. #define PointerMotionMask        (1L<<6)  
  127. #define PointerMotionHintMask        (1L<<7)  
  128. #define Button1MotionMask        (1L<<8)  
  129. #define Button2MotionMask        (1L<<9)  
  130. #define Button3MotionMask        (1L<<10) 
  131. #define Button4MotionMask        (1L<<11) 
  132. #define Button5MotionMask        (1L<<12) 
  133. #define ButtonMotionMask        (1L<<13) 
  134. #define KeymapStateMask            (1L<<14)
  135. #define ExposureMask            (1L<<15) 
  136. #define VisibilityChangeMask        (1L<<16) 
  137. #define StructureNotifyMask        (1L<<17) 
  138. #define ResizeRedirectMask        (1L<<18) 
  139. #define SubstructureNotifyMask        (1L<<19) 
  140. #define SubstructureRedirectMask    (1L<<20) 
  141. #define FocusChangeMask            (1L<<21) 
  142. #define PropertyChangeMask        (1L<<22) 
  143. #define ColormapChangeMask        (1L<<23) 
  144. #define OwnerGrabButtonMask        (1L<<24) 
  145.  
  146. /* Event names.  Used in "type" field in XEvent structures.  Not to be
  147. confused with event masks above.  They start from 2 because 0 and 1
  148. are reserved in the protocol for errors and replies. */
  149.  
  150. #define KeyPress        2
  151. #define KeyRelease        3
  152. #define ButtonPress        4
  153. #define ButtonRelease        5
  154. #define MotionNotify        6
  155. #define EnterNotify        7
  156. #define LeaveNotify        8
  157. #define FocusIn            9
  158. #define FocusOut        10
  159. #define KeymapNotify        11
  160. #define Expose            12
  161. #define GraphicsExpose        13
  162. #define NoExpose        14
  163. #define VisibilityNotify    15
  164. #define CreateNotify        16
  165. #define DestroyNotify        17
  166. #define UnmapNotify        18
  167. #define MapNotify        19
  168. #define MapRequest        20
  169. #define ReparentNotify        21
  170. #define ConfigureNotify        22
  171. #define ConfigureRequest    23
  172. #define GravityNotify        24
  173. #define ResizeRequest        25
  174. #define CirculateNotify        26
  175. #define CirculateRequest    27
  176. #define PropertyNotify        28
  177. #define SelectionClear        29
  178. #define SelectionRequest    30
  179. #define SelectionNotify        31
  180. #define ColormapNotify        32
  181. #define ClientMessage        33
  182. #define MappingNotify        34
  183. #define LASTEvent        35    /* must be bigger than any event # */
  184.  
  185.  
  186. /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
  187.    state in various key-, mouse-, and button-related events. */
  188.  
  189. /* slightly redefined for Amiga -tp */
  190.  
  191. #define ShiftMask        (1<<0|1<<1)
  192. #define LockMask        (1<<2)
  193. #define ControlMask        (1<<3)
  194. #define Mod1Mask        (1<<5)
  195. #define Mod2Mask        (1<<6)
  196. #define Mod3Mask        (1<<7)
  197.  
  198. #define Mod4Mask        (1<<6)
  199. #define Mod5Mask        (1<<7)
  200.  
  201. /* modifier names.  Used to build a SetModifierMapping request or
  202.    to read a GetModifierMapping request.  These correspond to the
  203.    masks defined above. */
  204. #define ShiftMapIndex        0
  205. #define LockMapIndex        1
  206. #define ControlMapIndex        2
  207. #define Mod1MapIndex        3
  208. #define Mod2MapIndex        4
  209. #define Mod3MapIndex        5
  210. #define Mod4MapIndex        6
  211. #define Mod5MapIndex        7
  212.  
  213.  
  214. /* button masks.  Used in same manner as Key masks above. Not to be confused
  215.    with button names below. */
  216.  
  217. #define Button1Mask        (1<<8)
  218. #define Button2Mask        (1<<9)
  219. #define Button3Mask        (1<<10)
  220. #define Button4Mask        (1<<11)
  221. #define Button5Mask        (1<<12)
  222.  
  223. #define AnyModifier        (1<<15)  /* used in GrabButton, GrabKey */
  224.  
  225.  
  226. /* button names. Used as arguments to GrabButton and as detail in ButtonPress
  227.    and ButtonRelease events.  Not to be confused with button masks above.
  228.    Note that 0 is already defined above as "AnyButton".  */
  229.  
  230. #define Button1            1
  231. #define Button2            2
  232. #define Button3            3
  233. #define Button4            4
  234. #define Button5            5
  235.  
  236. /* Notify modes */
  237.  
  238. #define NotifyNormal        0
  239. #define NotifyGrab        1
  240. #define NotifyUngrab        2
  241. #define NotifyWhileGrabbed    3
  242.  
  243. #define NotifyHint        1    /* for MotionNotify events */
  244.                
  245. /* Notify detail */
  246.  
  247. #define NotifyAncestor        0
  248. #define NotifyVirtual        1
  249. #define NotifyInferior        2
  250. #define NotifyNonlinear        3
  251. #define NotifyNonlinearVirtual    4
  252. #define NotifyPointer        5
  253. #define NotifyPointerRoot    6
  254. #define NotifyDetailNone    7
  255.  
  256. /* Visibility notify */
  257.  
  258. #define VisibilityUnobscured        0
  259. #define VisibilityPartiallyObscured    1
  260. #define VisibilityFullyObscured        2
  261.  
  262. /* Circulation request */
  263.  
  264. #define PlaceOnTop        0
  265. #define PlaceOnBottom        1
  266.  
  267. /* protocol families */
  268.  
  269. #define FamilyInternet        0
  270. #define FamilyDECnet        1
  271. #define FamilyChaos        2
  272.  
  273. /* Property notification */
  274.  
  275. #define PropertyNewValue    0
  276. #define PropertyDelete        1
  277.  
  278. /* Color Map notification */
  279.  
  280. #define ColormapUninstalled    0
  281. #define ColormapInstalled    1
  282.  
  283. /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
  284.  
  285. #define GrabModeSync        0
  286. #define GrabModeAsync        1
  287.  
  288. /* GrabPointer, GrabKeyboard reply status */
  289.  
  290. #define GrabSuccess        0
  291. #define AlreadyGrabbed        1
  292. #define GrabInvalidTime        2
  293. #define GrabNotViewable        3
  294. #define GrabFrozen        4
  295.  
  296. /* AllowEvents modes */
  297.  
  298. #define AsyncPointer        0
  299. #define SyncPointer        1
  300. #define ReplayPointer        2
  301. #define AsyncKeyboard        3
  302. #define SyncKeyboard        4
  303. #define ReplayKeyboard        5
  304. #define AsyncBoth        6
  305. #define SyncBoth        7
  306.  
  307. /* Used in SetInputFocus, GetInputFocus */
  308.  
  309. #define RevertToNone        (int)None
  310. #define RevertToPointerRoot    (int)PointerRoot
  311. #define RevertToParent        2
  312.  
  313. /*****************************************************************
  314.  * ERROR CODES 
  315.  *****************************************************************/
  316.  
  317. #define Success           0    /* everything's okay */
  318. #define BadRequest       1    /* bad request code */
  319. #define BadValue       2    /* int parameter out of range */
  320. #define BadWindow       3    /* parameter not a Window */
  321. #define BadPixmap       4    /* parameter not a Pixmap */
  322. #define BadAtom           5    /* parameter not an Atom */
  323. #define BadCursor       6    /* parameter not a Cursor */
  324. #define BadFont           7    /* parameter not a Font */
  325. #define BadMatch       8    /* parameter mismatch */
  326. #define BadDrawable       9    /* parameter not a Pixmap or Window */
  327. #define BadAccess      10    /* depending on context:
  328.                  - key/button already grabbed
  329.                  - attempt to free an illegal 
  330.                    cmap entry 
  331.                 - attempt to store into a read-only 
  332.                    color map entry.
  333.                  - attempt to modify the access control
  334.                    list from other than the local host.
  335.                 */
  336. #define BadAlloc      11    /* insufficient resources */
  337. #define BadColor      12    /* no such colormap */
  338. #define BadGC          13    /* parameter not a GC */
  339. #define BadIDChoice      14    /* choice not in range or already used */
  340. #define BadName          15    /* font or color name doesn't exist */
  341. #define BadLength      16    /* Request length incorrect */
  342. #define BadImplementation 17    /* server is defective */
  343.  
  344. #define FirstExtensionError    128
  345. #define LastExtensionError    255
  346.  
  347. /*****************************************************************
  348.  * WINDOW DEFINITIONS 
  349.  *****************************************************************/
  350.  
  351. /* Window classes used by CreateWindow */
  352. /* Note that CopyFromParent is already defined as 0 above */
  353.  
  354. #define InputOutput        1
  355. #define InputOnly        2
  356.  
  357. /* Window attributes for CreateWindow and ChangeWindowAttributes */
  358.  
  359. #define CWBackPixmap        (1L<<0)
  360. #define CWBackPixel        (1L<<1)
  361. #define CWBorderPixmap        (1L<<2)
  362. #define CWBorderPixel           (1L<<3)
  363. #define CWBitGravity        (1L<<4)
  364. #define CWWinGravity        (1L<<5)
  365. #define CWBackingStore          (1L<<6)
  366. #define CWBackingPlanes            (1L<<7)
  367. #define CWBackingPixel            (1L<<8)
  368. #define CWOverrideRedirect    (1L<<9)
  369. #define CWSaveUnder        (1L<<10)
  370. #define CWEventMask        (1L<<11)
  371. #define CWDontPropagate            (1L<<12)
  372. #define CWColormap        (1L<<13)
  373. #define CWCursor            (1L<<14)
  374.  
  375. /* ConfigureWindow structure */
  376.  
  377. #define CWX            (1<<0)
  378. #define CWY            (1<<1)
  379. #define CWWidth            (1<<2)
  380. #define CWHeight        (1<<3)
  381. #define CWBorderWidth        (1<<4)
  382. #define CWSibling        (1<<5)
  383. #define CWStackMode        (1<<6)
  384.  
  385.  
  386. /* Bit Gravity */
  387.  
  388. #define ForgetGravity        0
  389. #define NorthWestGravity    1
  390. #define NorthGravity        2
  391. #define NorthEastGravity    3
  392. #define WestGravity        4
  393. #define CenterGravity        5
  394. #define EastGravity        6
  395. #define SouthWestGravity    7
  396. #define SouthGravity        8
  397. #define SouthEastGravity    9
  398. #define StaticGravity        10
  399.  
  400. /* Window gravity + bit gravity above */
  401.  
  402. #define UnmapGravity        0
  403.  
  404. /* Used in CreateWindow for backing-store hint */
  405.  
  406. #define NotUseful               0
  407. #define WhenMapped              1
  408. #define Always                  2
  409.  
  410. /* Used in GetWindowAttributes reply */
  411.  
  412. #define IsUnmapped        0
  413. #define IsUnviewable        1
  414. #define IsViewable        2
  415.  
  416. /* Used in ChangeSaveSet */
  417.  
  418. #define SetModeInsert           0
  419. #define SetModeDelete           1
  420.  
  421. /* Used in ChangeCloseDownMode */
  422.  
  423. #define DestroyAll              0
  424. #define RetainPermanent         1
  425. #define RetainTemporary         2
  426.  
  427. /* Window stacking method (in configureWindow) */
  428.  
  429. #define Above                   0
  430. #define Below                   1
  431. #define TopIf                   2
  432. #define BottomIf                3
  433. #define Opposite                4
  434.  
  435. /* Circulation direction */
  436.  
  437. #define RaiseLowest             0
  438. #define LowerHighest            1
  439.  
  440. /* Property modes */
  441.  
  442. #define PropModeReplace         0
  443. #define PropModePrepend         1
  444. #define PropModeAppend          2
  445.  
  446. /*****************************************************************
  447.  * GRAPHICS DEFINITIONS
  448.  *****************************************************************/
  449.  
  450. /* graphics functions, as in GC.alu */
  451.  
  452. #define    GXclear            0x0        /* 0 */
  453. #define GXand            0x1        /* src AND dst */
  454. #define GXandReverse        0x2        /* src AND NOT dst */
  455. #define GXcopy            0x3        /* src */
  456. #define GXandInverted        0x4        /* NOT src AND dst */
  457. #define    GXnoop            0x5        /* dst */
  458. #define GXxor            0x6        /* src XOR dst */
  459. #define GXor            0x7        /* src OR dst */
  460. #define GXnor            0x8        /* NOT src AND NOT dst */
  461. #define GXequiv            0x9        /* NOT src XOR dst */
  462. #define GXinvert        0xa        /* NOT dst */
  463. #define GXorReverse        0xb        /* src OR NOT dst */
  464. #define GXcopyInverted        0xc        /* NOT src */
  465. #define GXorInverted        0xd        /* NOT src OR dst */
  466. #define GXnand            0xe        /* NOT src OR NOT dst */
  467. #define GXset            0xf        /* 1 */
  468.  
  469. /* LineStyle */
  470.  
  471. #define LineSolid        0
  472. #define LineOnOffDash        1
  473. #define LineDoubleDash        2
  474.  
  475. /* capStyle */
  476.  
  477. #define CapNotLast        0
  478. #define CapButt            1
  479. #define CapRound        2
  480. #define CapProjecting        3
  481.  
  482. /* joinStyle */
  483.  
  484. #define JoinMiter        0
  485. #define JoinRound        1
  486. #define JoinBevel        2
  487.  
  488. /* fillStyle */
  489.  
  490. #define FillSolid        0
  491. #define FillTiled        1
  492. #define FillStippled        2
  493. #define FillOpaqueStippled    3
  494.  
  495. /* fillRule */
  496.  
  497. #define EvenOddRule        0
  498. #define WindingRule        1
  499.  
  500. /* subwindow mode */
  501.  
  502. #define ClipByChildren        0
  503. #define IncludeInferiors    1
  504.  
  505. /* SetClipRectangles ordering */
  506.  
  507. #define Unsorted        0
  508. #define YSorted            1
  509. #define YXSorted        2
  510. #define YXBanded        3
  511.  
  512. /* CoordinateMode for drawing routines */
  513.  
  514. #define CoordModeOrigin        0    /* relative to the origin */
  515. #define CoordModePrevious       1    /* relative to previous point */
  516.  
  517. /* Polygon shapes */
  518.  
  519. #define Complex            0    /* paths may intersect */
  520. #define Nonconvex        1    /* no paths intersect, but not convex */
  521. #define Convex            2    /* wholly convex */
  522.  
  523. /* Arc modes for PolyFillArc */
  524.  
  525. #define ArcChord        0    /* join endpoints of arc */
  526. #define ArcPieSlice        1    /* join endpoints to center of arc */
  527.  
  528. /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
  529.    GC.stateChanges */
  530.  
  531. #define GCFunction              (1L<<0)
  532. #define GCPlaneMask             (1L<<1)
  533. #define GCForeground            (1L<<2)
  534. #define GCBackground            (1L<<3)
  535. #define GCLineWidth             (1L<<4)
  536. #define GCLineStyle             (1L<<5)
  537. #define GCCapStyle              (1L<<6)
  538. #define GCJoinStyle        (1L<<7)
  539. #define GCFillStyle        (1L<<8)
  540. #define GCFillRule        (1L<<9) 
  541. #define GCTile            (1L<<10)
  542. #define GCStipple        (1L<<11)
  543. #define GCTileStipXOrigin    (1L<<12)
  544. #define GCTileStipYOrigin    (1L<<13)
  545. #define GCFont             (1L<<14)
  546. #define GCSubwindowMode        (1L<<15)
  547. #define GCGraphicsExposures     (1L<<16)
  548. #define GCClipXOrigin        (1L<<17)
  549. #define GCClipYOrigin        (1L<<18)
  550. #define GCClipMask        (1L<<19)
  551. #define GCDashOffset        (1L<<20)
  552. #define GCDashList        (1L<<21)
  553. #define GCArcMode        (1L<<22)
  554.  
  555. #define GCLastBit        22
  556. /*****************************************************************
  557.  * FONTS 
  558.  *****************************************************************/
  559.  
  560. /* used in QueryFont -- draw direction */
  561.  
  562. #define FontLeftToRight        0
  563. #define FontRightToLeft        1
  564.  
  565. #define FontChange        255
  566.  
  567. /*****************************************************************
  568.  *  IMAGING 
  569.  *****************************************************************/
  570.  
  571. /* ImageFormat -- PutImage, GetImage */
  572.  
  573. #define XYBitmap        0    /* depth 1, XYFormat */
  574. #define XYPixmap        1    /* depth == drawable depth */
  575. #define ZPixmap            2    /* depth == drawable depth */
  576.  
  577. /*****************************************************************
  578.  *  COLOR MAP STUFF 
  579.  *****************************************************************/
  580.  
  581. /* For CreateColormap */
  582.  
  583. #define AllocNone        0    /* create map with no entries */
  584. #define AllocAll        1    /* allocate entire map writeable */
  585.  
  586.  
  587. /* Flags used in StoreNamedColor, StoreColors */
  588.  
  589. #define DoRed            (1<<0)
  590. #define DoGreen            (1<<1)
  591. #define DoBlue            (1<<2)
  592.  
  593. /*****************************************************************
  594.  * CURSOR STUFF
  595.  *****************************************************************/
  596.  
  597. /* QueryBestSize Class */
  598.  
  599. #define CursorShape        0    /* largest size that can be displayed */
  600. #define TileShape        1    /* size tiled fastest */
  601. #define StippleShape        2    /* size stippled fastest */
  602.  
  603. /***************************************************************** 
  604.  * KEYBOARD/POINTER STUFF
  605.  *****************************************************************/
  606.  
  607. #define AutoRepeatModeOff    0
  608. #define AutoRepeatModeOn    1
  609. #define AutoRepeatModeDefault    2
  610.  
  611. #define LedModeOff        0
  612. #define LedModeOn        1
  613.  
  614. /* masks for ChangeKeyboardControl */
  615.  
  616. #define KBKeyClickPercent    (1L<<0)
  617. #define KBBellPercent        (1L<<1)
  618. #define KBBellPitch        (1L<<2)
  619. #define KBBellDuration        (1L<<3)
  620. #define KBLed            (1L<<4)
  621. #define KBLedMode        (1L<<5)
  622. #define KBKey            (1L<<6)
  623. #define KBAutoRepeatMode    (1L<<7)
  624.  
  625. #define MappingSuccess         0
  626. #define MappingBusy            1
  627. #define MappingFailed        2
  628.  
  629. #define MappingModifier        0
  630. #define MappingKeyboard        1
  631. #define MappingPointer        2
  632.  
  633. /*****************************************************************
  634.  * SCREEN SAVER STUFF 
  635.  *****************************************************************/
  636.  
  637. #define DontPreferBlanking    0
  638. #define PreferBlanking        1
  639. #define DefaultBlanking        2
  640.  
  641. #define DisableScreenSaver    0
  642. #define DisableScreenInterval    0
  643.  
  644. #define DontAllowExposures    0
  645. #define AllowExposures        1
  646. #define DefaultExposures    2
  647.  
  648. /* for ForceScreenSaver */
  649.  
  650. #define ScreenSaverReset 0
  651. #define ScreenSaverActive 1
  652.  
  653. /*****************************************************************
  654.  * HOSTS AND CONNECTIONS
  655.  *****************************************************************/
  656.  
  657. /* for ChangeHosts */
  658.  
  659. #define HostInsert        0
  660. #define HostDelete        1
  661.  
  662. /* for ChangeAccessControl */
  663.  
  664. #define EnableAccess        1      
  665. #define DisableAccess        0
  666.  
  667. /* Display classes  used in opening the connection 
  668.  * Note that the statically allocated ones are even numbered and the
  669.  * dynamically changeable ones are odd numbered */
  670.  
  671. #define StaticGray        0
  672. #define GrayScale        1
  673. #define StaticColor        2
  674. #define PseudoColor        3
  675. #define TrueColor        4
  676. #define DirectColor        5
  677.  
  678.  
  679. /* Byte order  used in imageByteOrder and bitmapBitOrder */
  680.  
  681. #define LSBFirst        0
  682. #define MSBFirst        1
  683.  
  684. #endif /* X_H */
  685.